package br.inf.solutions.apresentacoes.ssp.model.basics;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import br.com.vexillum.model.CommonEntityActivated;
import br.com.vexillum.model.annotations.SearchField;
import br.com.vexillum.model.annotations.Validate;
import br.com.vexillum.vexreports.annotation.ReportField;

@SuppressWarnings("serial")
@MappedSuperclass
public abstract class BasicCommon extends CommonEntityActivated {

	@ReportField(name = "Nome", order = 1)
	@SearchField
	@Validate(notNull = true)
	@Column(name="name", nullable=false, updatable=true, length=100)
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String toString() {
		return this.name;
	}
}
